<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" media="(max-width:600px) " href="css/indexphone.css ">
    <link rel="stylesheet" media="(min-width:601px)  and (max-width:1199px)" href="css/indexpb.css ">
    <link rel="stylesheet" media="(min-width:1200px) " href="css/indexpc.css ">
    <script src="./js/start.js" defer></script>

    <!-- 刘春阳添加 -->
    <style>
        /* 黑色透明盒子 */
        #blackBox {
            width: 100%;
            height: 100vh;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 99999;
            /* 黑色透明背景 */
            background-color: #333333ae;
            /* 控制消失和显示 */
            display: none;
        }

        /* 黑色透明盒子里的子盒子 */
        #blackBox #blackSubBox {
            width: 27%;
            height: 58%;
            background-color: white;
            margin: 0 auto;
            margin-top: 7%;
            padding: 15px;
            position: relative;
        }

        /* 盒子里的图片 */
        #blackBox #blackSubBox img {
            width: 100%;
        }

        /* 盒子里的关闭按钮 */
        #xiaoShi {
            width: 17px;
            height: 17px;
            text-align: center;
            line-height: 17px;
            position: absolute;
            top: 5px;
            right: 5px;
            display: inline-block;
            background-color: #e7e7e7;
            cursor: pointer;
        }

        #blackBox #blackSubBox {
            padding: 20px;
        }
    </style>
</head>

<body>
    <!-- 添加 -->
    <div id="blackBox"><!-- 黑色透明盒子 --></div>
    <script>
        let images1 = 'image/人.jpg'

        if (window.innerWidth > 600) {

            // 显示盒子
            function xianShi() {
                var blackBox = document.querySelector('#blackBox');
                // 修改css属性来显示盒子
                blackBox.style.display = 'block';
                //内容                  //黑色透明子盒子
                blackBox.innerHTML = "<div id='blackSubBox'>"
                    + "<img src=" + images1 + ">"
                    + "<span id='xiaoShi' onclick='xiaoShi()'>X</span>"
                    + "</div>";
                // 禁止滑动
                document.addEventListener('scroll', disableScroll)
                function disableScroll() {
                    window.scrollTo(0, 0);
                }
            }
            // 消失盒子
            function xiaoShi() {
                var blackBox = document.querySelector('#blackBox');
                // 修改css属性来消失盒子
                blackBox.style.display = 'none';
            }
        }
    </script>


    <nav>
        <div class="nav_header">
            <div>LOGO</div>
            <div class="nav_input">
                <input type="text" placeholder="Search...">
                <span class="searchbtn">
                    All Categories
                    <img src="./image/向下.png" alt="">
                    <div class="searchbox">
                        <ul>
                            <li>xxxxx</li>
                            <li>xxxxx</li>
                            <li>xxxxx</li>
                            <li>xxxxx</li>
                            <li>xxxxx</li>
                        </ul>
                    </div>
                </span>

                <span><img src="./image/搜索.png" alt=""></span>
            </div>
            <script>
                let search = document.querySelector('.searchbtn');
                let searchbox = document.querySelector('.searchbox');
                let i = 0;
                search.addEventListener('click', function () {

                    if (i == 0) {
                        searchbox.style = "display: block;"
                        i++;
                    } else {
                        searchbox.style = "display: none;"
                        i = 0;
                    }
                });
                search.ontouchstart = function () {
                    console.log(111)
                }
            </script>
            <div class="nav_icon">

                <img src="./image/三条线-copy.png" alt="">
                <div class="nav_icons">
                    <span>1</span>
                </div>
            </div>

        </div>
        <div class="nav_menu" id="we">
            <img src="./image/错.png" alt="" class="mistake">
            <ul id="llk">
                <li><a href="">HOME</a></li>
                <li class="lisbtn"><a href="">Product lists</a>
                    <ul class="lisbox">
                        <li><a href="#;">Morning</a></li>
                        <li><a href="#;">Afternoon</a></li>
                        <li><a href="#;">Evening</a></li>
                    </ul>
                </li>
                <script>
                    let lisbtn = document.querySelector('.lisbtn');
                    let lisbox = document.querySelector('.lisbox');
                    lisbtn.addEventListener('click', function () {

                        if (lisbox.style.display === 'none') {
                            lisbox.style.display = "block"
                            i++;
                        } else {
                            lisbox.style.display = "none"
                            i = 0;
                        }
                    })
                </script>
                <li><a href="">Product Details</a></li>
                <li><a href="">List of reviews</a></li>
                <li><a href="">A list of stories</a></li>
                <li><a href="">Shopping cart</a></li>
                <li><a href="">login</a><a href="">enroll</a></li>
            </ul>
        </div>
        <script>
            let nav = document.querySelector('.nav_menu');
            let icon = document.querySelector('.nav_icon img');
            let mistake = document.querySelector(".mistake")
            icon.addEventListener('click', function () {
                nav.style = "height: 376px; padding:20px;"
            });
            mistake.addEventListener('click', function () {
                nav.style = "height: 0px; padding:0px;"
            });
        </script>
        <div class="nav">
            <ul>
                <li><a href="">HOME</a></li>
                <li><a href="">Product lists</a>
                    <ul>
                        <li><a href="#;">red figue skating dress </a></li>
                        <li><a href="#;">red figue skating dress </a></li>
                        <li><a href="#;">red figue skating dress </a></li>

                    </ul>
                </li>
                <li><a href="">Product Details</a></li>
                <li><a href="">List of reviews</a></li>
                <li><a href="">A list of stories</a></li>
                <li><a href="">Shopping cart</a></li>
                <li><a href="">login</a><a href="">enroll</a></li>
            </ul>
            <div class="nav_icon">
                <span>1</span>
            </div>
        </div>
    </nav>

    <main class="w main">
        <div class="lft">
            <div class="lft-img">
                <img src="image/人.jpg" alt="" onclick="xianShi()">
                <div class="lft-search" id="none"><img src="image/搜索.png" alt=""></div>
                <div class="lft-slt" id="none1">
                    <img src="image/人.jpg" alt="">
                    <img src="image/fitstimg.jpg" alt="">
                    <script>
                        let img = ''
                        let imgArr = document.querySelectorAll(".lft-slt img")


                        for (let i = 0; i < imgArr.length; i++) {
                            imgArr[i].addEventListener('click', function () {
                                img = imgArr[i].src
                                console.log(img)
                                document.querySelector('.lft-img img').src = img
                                images1 = imgArr[i].src

                            })
                        }
                    </script>
                </div>
            </div>
        </div>
        <div class="center">
            <h1>Hot Sale Girls Figure Skating Dresses Blue Custom B1501</h1>
            <div class="center-item2">
                <div class="center-xing">
                    <img src="image/黄星.png" alt="">
                    <img src="image/黄星.png" alt="">
                    <img src="image/黄星.png" alt="">
                    <img src="image/黄星.png" alt="">
                </div>
                <div>4 Review(s)</div>
                <div style="color: #000;opacity: .5;text-align: center;">|</div>
                <div>Add Your Review</div>
            </div>
            <div class="center-item3">
                Please give me the measurements,we will custom it for you.of course you can send me photoes,and we can
                custom it for you even though the dress is not ours.
            </div>
            <h2 class="center-item4">$189.00</h2>
            <p class="center-item5">Availability: <span> In stock</span></p>
            <div class="center-item6">Hot Sale Girls Figure Skating Dresses Blue Custom B1501 is available for purchase
                in increments of 1</div>
            <div class="center-item7"><a href="#">Email to a Friend</a></div>
            <p class="center-item8">Color(please check color chart,put the No.in,leave null means color as the photo)
            </p>
            <input type="text" class="center-item9">
            <p class="center-item10">measurements(please check the size chart)</p>
            <input type="text" class="center-item11">
            <div class="center-item12">
                <input type="text" value="1">
                <div class="center-btn">
                    <div class="jia">+</div>
                    <div class="jian">-</div>
                </div>
                <script>
                    document.querySelector('.jia').addEventListener("click", function () {
                        document.querySelector('.center-item12 input').value++
                    })
                    document.querySelector('.jian').addEventListener("click", function () {
                        if (document.querySelector('.center-item12 input').value > 1) {
                            document.querySelector('.center-item12 input').value--
                        }
                    })
                </script>
                <div class="sx">
                    <div>颜色<img src="image/向下.png" alt="">
                    </div>
                    <ul>
                        <li>红色</li>
                        <li>白色</li>
                        <li>绿色</li>
                        <li>黑色</li>
                        <li>蓝色</li>
                    </ul>
                </div>
                <script>
                    let sx = true
                    document.querySelector('.sx').addEventListener('click', function () {
                        if (sx) {
                            document.querySelector('.sx ul').style.display = 'block'
                            document.querySelector('.sx img').src = 'image/向上.png'
                            sx = false
                        } else {
                            document.querySelector('.sx ul').style.display = 'none'
                            sx = true
                            document.querySelector('.sx img').src = 'image/向下.png'
                        }
                    })
                </script>
                <div class=xd><img src="image/购物车.png" id="none" alt="">Add to Cart</div>
                <div class="xin"><img src="image/星.png" alt=""></div>
                <script>
                    let t = true
                    document.querySelector('.xin').addEventListener("click", function () {
                        if (t) {
                            document.querySelector('.xin img').src = "image/黄星.png"
                            t = false
                        } else {
                            document.querySelector('.xin img').src = "image/星.png"
                            t = true
                        }
                    })
                </script>
            </div>
            <div class="right-item">
                <h5>通知:</h5>
                <li>用户:1***1 <p>通过&nbsp;</p><span>签到</span>领取了3元无门槛优惠卷</li>
                <li>用户:2***2 <p>通过&nbsp;</p><span>好友助力</span>领取了99.9元无门槛优惠卷</li>
                <li>用户:3***3 <p>通过&nbsp;</p><span>邀请新人</span>领取了6.66元无门槛优惠卷</li>
                <li>用户:4***4 <p>通过&nbsp;</p><span>注册</span>领取了19.9元无门槛优惠卷</li>
                <li>用户:5***5 <p>通过&nbsp;</p><span>踏秋活动</span>领取了6元无门槛优惠卷</li>
            </div>
        </div>
        <div class="right">
            <div class="right-item1">
                <div class="right-item1-1">
                    <div class="right-che">
                        <img src="image/车.gif" alt="">
                    </div>
                    <div class="right-item1-1-1">
                        <h3>FREE SHIPPING</h3>
                        <p>Free shipping on all orders(details).</p>
                    </div>
                </div>
                <div class="right-item1-1">
                    <div class="right-che meiyuan">
                        <img src="image/美元.gif" alt="">
                    </div>
                    <div class="right-item1-1-1">
                        <h3>MONEY BACK GUARANTEE</h3>
                        <p>100% money back guarantee.</p>
                    </div>
                </div>
                <div class="right-item1-1">
                    <div class="right-che ">
                        <img src="image/圆圈.png" alt="">
                    </div>
                    <div class="right-item1-1-1">
                        <h3>ONLINE SUPPORT 24/7</h3>
                        <p>please contact us.</p>
                    </div>
                </div>
            </div>
            <div class="right-item2">
                <h3>Related Products</h3>
            </div>
            <div class="right-item3">
                Check items to add to the cart or <a href="#">select all</a>
            </div>
            <div class="right-item4">
                <div class="right-item4-img">
                    <img src="image/nv人.jpg" alt="">
                </div>
                <div class="right-item4-right">
                    <p>
                        Blue Black Ice Skating Dresses Girls Brad Griffies BN1724
                    </p>
                    <div class="right-item4-xing">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h3>$99.00</h3>
                    <div class="tw">
                        l Girth or Torso: Start at the center of the shoulder
                    </div>
                </div>
            </div>
            <div class="right-item4">
                <div class="right-item4-img">
                    <img src="image/nv人.jpg" alt="">
                </div>
                <div class="right-item4-right">
                    <p>
                        Blue Black Ice Skating Dresses Girls Brad Griffies BN1724
                    </p>
                    <div class="right-item4-xing">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h3>$99.00</h3>
                    <div class="tw">
                        l Girth or Torso: Start at the center of the shoulder
                    </div>
                </div>
            </div>
            <div class="right-item4">
                <div class="right-item4-img">
                    <img src="image/nv人.jpg" alt="">
                </div>
                <div class="right-item4-right">
                    <p>
                        Blue Black Ice Skating Dresses Girls Brad Griffies BN1724
                    </p>
                    <div class="right-item4-xing">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h3>$99.00</h3>
                    <div class="tw">
                        l Girth or Torso: Start at the center of the shoulder
                    </div>
                </div>
            </div>
            <div class="right-item5"></div>
            <div class="right-item6"><img src="image/bu.jpg" alt=""></div>
    </main>
    <div class="w cdw">
        <div class="label"><a href="#">
                <p>Description</p>
            </a></div>

    </div>
    <div class="w w1 cdw1">
        <div class="box">
            <h1 class="box-h1">Size Chart</h1>
            <p class="box-p">The ways to measure:</p>
            <p class="box-p">l Bust: Measure under your arms and around the plumpest part of your bust</p>
            <p class="box-p">l Waist: Measure around your natural waistline</p>
            <p class="box-p">l Hips: Measure around the fullest part of your </p>
            <p class="box-p">l Girth or Torso: Start at the center of the shoulder and measure down the front, through
                the
                crotch, and back
                up to the starting </p>
            <p class="box-p">point.)</p>
            <div class="yf">
                <img src="image/yifu.jpg" alt="">
            </div>
            <h1 class=" h1-2">Color Chart</h1>
            <div class="box-bu"><img src="image/bu.jpg" alt=""></div>
            <p class="box-p p-3">If you can not find the color you need,please contact me,we will color it for you.</p>

        </div>
        <div class="plmain ">
            <div class="ccd">
                <h4 class="plh4">评论:</h4>
                <div class="plbox">
                    <input type="text" class="pl" name="pl" id="pl" placeholder="快来发表你的第一条评论吧！">
                    <div>发送</div>
                </div>
            </div>
        </div>


        <p class="box-p p-3 p-4" id="p">Also Purchased</p>
        <div class="w2" id="ccccccccccccc">
            <div class="ren">
                <div class="ren-item"><img src="image/人1.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="footer-xing">
                        <div>
                        </div>
                        <div class="xing-item">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                        </div>
                        <div>
                        </div>
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人2.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="xing-item">
                        <img src="image/黄星.png" alt="">
                        <img src="image/黄星.png" alt="">
                        <img src="image/黄星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h2>$69.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人3.jpg" alt="">
                    <p>Light Pink Figure Skating Dresses Brad-Griffies Dresses B1707</p>
                    <div class="xing-item">
                        <img src="image/黄星.png" alt="">
                        <img src="image/黄星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人4.jpg" alt="">
                    <p>Purple Ice Dresses for Girls Nude Mesh Brad Griffies BN1733</p>
                    <div class="xing-item">
                        <img src="image/黄星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                        <img src="image/星.png" alt="">
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ren">
                <div class="ren-item"><img src="image/人5.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="footer-xing">
                        <div>
                        </div>
                        <div class="xing-item">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                        </div>
                        <div>
                        </div>
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人6.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="footer-xing">
                        <div>
                        </div>
                        <div class="xing-item">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                        </div>
                        <div>
                        </div>
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人1.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="footer-xing">
                        <div>
                        </div>
                        <div class="xing-item">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                        </div>
                        <div>
                        </div>
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
                <div class="ren-item"><img src="image/人1.jpg" alt="">
                    <p>Blue Figure Skating Clothes For Practice Sharene S004</p>
                    <div class="footer-xing">
                        <div>
                        </div>
                        <div class="xing-item">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                            <img src="image/黄星.png" alt="">
                        </div>
                        <div>
                        </div>
                    </div>
                    <h2>$199.00</h2>
                    <div class="renbtn">
                        <div class="sc"><img src="image/黄星.png" alt=""></div>
                        <div>
                            <a href="#"><img src="image/_购物 (1).png" alt="">Add to Cart</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>

    </div>


</body>
<div class="ft">
    <footer>
        <ul>
            <li><a href="#;">Contact Info</a></li>
            <li><a href="#;">Return && Shipping Policy</a></li>
            <li><a href="#;">mail : denglongfaetsy@yahoo.com</a></li>
        </ul>
        <ul>
            <li><a href="#;">Contact Info</a></li>
            <li><a href="#;">Return && Shipping Policy</a></li>
            <li><a href="#;">mail : denglongfaetsy@yahoo.com</a></li>
        </ul>
        <ul>
            <li><a href="#;">Contact Info</a></li>
            <li><a href="#;">Return && Shipping Policy</a></li>
            <li><a href="#;">mail : denglongfaetsy@yahoo.com</a></li>
        </ul>

    </footer>
    <script>
        if (window.innerWidth < 601) {
            console.log(window.innerWidth);
            let ft = document.querySelector('.ft')
            console.log(ft);
            ft.style.width = window.innerWidth + 'px';

            let banner = document.querySelector('#llk')
            console.log(banner);

            banner.style.width = `${window.innerWidth - 40}px`;
            console.log(banner.width);
            let html = document.querySelector('html')
            console.log(html);

            html.style.width = `${window.innerWidth}px`;
            console.log(html.width);


            let w = document.querySelector('.w')
            console.log(w);

            w.style.width = `${window.innerWidth}px`;
            console.log(w.width);

            (function () {
                let w = document.querySelector('.w .box')
                console.log(w);

                w.style.width = `${window.innerWidth - 41}px`;
                console.log(w.width);

            })();
            (function () {
                let w = document.querySelector('#ccccccccccccc')
                console.log(w);

                w.style.width = `${window.innerWidth}px`;
                console.log(w.width);

            })();
            (function () {
                let w = document.querySelector('.w ')
                console.log(w);

                w.style.width = `${window.innerWidth}px`;
                console.log(w.width);

            })();
            (function () {
                let w = document.querySelector('.w1 ')
                console.log(w);

                w.style.width = `${window.innerWidth}px`;
                console.log(w.width);

            })();
            (function () {
                let w = document.querySelector('.cdw1')
                console.log(w);

                w.style.width = `${window.innerWidth}px`;
                console.log(w.width);

            })();
            (function () {
                let w = document.querySelector('.nav_header')
                console.log(w);

                w.style.width = `${window.innerWidth}px`;
                console.log(w.width);

            })();
        }

    </script>


</div>

</html>